package com.huawei.cloud.phone.management.application.connection.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.huawei.cloud.phone.management.common.utils.RandomStringUtils;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RequestDTO {
    /**
     * 请求ID
     */
    @JsonProperty("request_id")
    private String requestId = RandomStringUtils.randomUuidNoHyphens();

    /**
     * 对称密钥
     */
    @JsonProperty("aes_key")
    private String aesKey;

    public RequestDTO(String aesKey) {
        this.aesKey = aesKey;
    }
}
